package com.yuanrui.subject.application.convert;

import com.yuanrui.subject.application.dto.SubjectAnswerDTO;
import com.yuanrui.subject.application.dto.SubjectLabelDTO;
import com.yuanrui.subject.domain.entity.SubjectAnswerBO;
import com.yuanrui.subject.domain.entity.SubjectLabelBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目标签表(SubjectLabel)DTO转换器
 */
@Mapper
public interface SubjectAnswerDTOConverter {

    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    // SubjectLabelDTO toDTO(SubjectLabelBo subjectLabelBo);
    List<SubjectAnswerDTO> toDTOList(List<SubjectAnswerBO> subjectAnswerBOList);

    // SubjectLabelBo toBo(SubjectLabelDTO subjectLabelDTO);
    List<SubjectAnswerBO> convertToBo(List<SubjectAnswerDTO> subjectAnswerDTO);
}
